export default [
  // user
  {
    path: "/auth",
    component: "../layouts/UserLayout",
    routes: [
      { path: "/auth", redirect: "/auth/login" },
      { path: "/auth/login", component: "./Auth/Login" },
      { path: "/auth/Register", component: "./Auth/Register" },
    ],
  },
  // app
  {
    path: "/",
    component: "../layouts/BasicLayout",
    // Routes: ['src/pages/Authorized'],
    authority: ["master", "user"],
    routes: [
      // dashboard
      { path: "/", redirect: "/auth/login" }, // modified by xiong
      // created by xiong start
      {
        path: "/info",
        name: "info",
        icon: "icon-supplier",
        routes: [
          {
            name: "account",
            path: "/info/account",
            component: "./Info/Account",
          },
          {
            name: "WarehouseManagement",
            path: "/info/WarehouseManagement",
            component: "./Info/WarehouseManagement/WarehouseInfo",
          },
          {
            name: "enterprise",
            path: "/info/enterprise",
            component: "./Info/Enterprise",
          },
        ],
      },
      {
        path: "/system",
        name: "system",
        icon: "icon-system",
        routes: [
          {
            path: "/system/NewAccount",
            name: "NewAccount",
            component: "./System/NewAccount/Account",
          },
          {
            path: "/system/role",
            name: "role",
            component: "./System/Role/Role",
          },
        ],
      },

      {
        component: "404",
      },
    ],
  },
];
